using AutoMapper;
using Blog.Repository;
using Blog.Repository.Role;
using Blog.Service.Role.Output;
using XjjXmm.Infrastructure.Repository.Model;

namespace Blog.Service.Role;


/// <summary>
/// 映射配置
/// </summary>
public class RoleMapperConfig : Profile
{
    public RoleMapperConfig()
    {
        CreateMap<RoleModel, RoleEntity>();
        CreateMap<RoleEntity, RoleModel>();
        CreateMap<RoleEntity, RoleListOutput>();
        CreateMap<RoleEntity, RoleListOutput>();
        CreateMap<PageOutput<RoleEntity>, PageOutput<RoleListOutput>>();

        
    }
}